/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package entity;

import java.io.Serializable;
public class Contatto implements Serializable {
	public Contatto() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == entity.ORMConstants.KEY_CONTATTO_UTENTE) {
			this.utente = (entity.Utente) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int ID;
	
	private entity.Utente utente;
	
	private String nickname;
	
	private String nome;
	
	private String cognome;
	
	private String avatar;
	
	private String indirizzo_mail;
	
	private void setID(int value) {
		this.ID = value;
	}
	
	public int getID() {
		return ID;
	}
	
	public int getORMID() {
		return getID();
	}
	
	public void setNickname(String value) {
		this.nickname = value;
	}
	
	public String getNickname() {
		return nickname;
	}
	
	public void setNome(String value) {
		this.nome = value;
	}
	
	public String getNome() {
		return nome;
	}
	
	public void setCognome(String value) {
		this.cognome = value;
	}
	
	public String getCognome() {
		return cognome;
	}
	
	public void setAvatar(String value) {
		this.avatar = value;
	}
	
	public String getAvatar() {
		return avatar;
	}
	
	public void setIndirizzo_mail(String value) {
		this.indirizzo_mail = value;
	}
	
	public String getIndirizzo_mail() {
		return indirizzo_mail;
	}
	
	public void setUtente(entity.Utente value) {
		if (utente != null) {
			utente.contatto.remove(this);
		}
		if (value != null) {
			value.contatto.add(this);
		}
	}
	
	public entity.Utente getUtente() {
		return utente;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Utente(entity.Utente value) {
		this.utente = value;
	}
	
	private entity.Utente getORM_Utente() {
		return utente;
	}
	
	public String toString() {
		return String.valueOf(getID());
	}
	
}
